package com.jincheng.system.mapstruct;

import com.jincheng.system.domain.Activity;
import com.jincheng.system.domain.dto.ActivityDetailDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)  // 使用 Spring 管理
public interface ActivityMapStruct {

    ActivityDetailDTO toActivityDetailDTO(Activity activity);

    List<ActivityDetailDTO> toActivityDetailDTOList(List<Activity> activityList);
}
